package com.ruoyi.web.controller.tzzl;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.tzzl.domain.WzConsumeRecord;
import com.ruoyi.tzzl.service.IWzConsumeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 消费记录Controller
 * @author by caoyong
 * @date 2022/11/8
 **/
@RestController
@RequestMapping("/tzzl/record")
public class WzConsumeRecordController  extends BaseController {

    @Autowired
    private IWzConsumeRecordService wzConsumeRecordService;

    /**
     * 查询消费记录列表
     */
    @GetMapping("/list")
    public TableDataInfo list(WzConsumeRecord wzConsumeRecord)
    {
        startPage();
        List<WzConsumeRecord> list = wzConsumeRecordService.selectWzConsumeRecordList(wzConsumeRecord);
        return getDataTable(list);
    }


}

